-
Notifications
You must be signed in to change notification settings - Fork 24.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DOCS] Change ctx.payload.hits.total.value
to ctx.payload.hits.total
#65874
Conversation
`ctx.payload.hits.total.value` is no longer valid. The proper way to get the total hits is `ctx.payload.hits.total`
@elasticmachine update branch |
Pinging @elastic/es-core-features (Team:Core/Features) |
Pinging @elastic/es-docs (Team:Docs) |
ctx.payload.hits.total.value
to ctx.payload.hits.total
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. FWIW the total.value is what is required if rest_total_hits_as_int
is set to false. It defaults to true today, but will likely default to false for 8.0: #38387
Also, it turns out that you can't actually store a watch with rest_total_hits_as_int
is set to false today: #65988
If/when we implement #38387 we will need to change this documentation back to using .value ...but I agree for now lets document the default
Thanks @jakelandis. |
…al` (#65874) (#66032) Co-authored-by: James Rodewig <[email protected]> Co-authored-by: Elastic Machine <[email protected]> Co-authored-by: Ernesto Reig <[email protected]>
…al` (#65874) (#66031) Co-authored-by: James Rodewig <[email protected]> Co-authored-by: Elastic Machine <[email protected]> Co-authored-by: Ernesto Reig <[email protected]>
ctx.payload.hits.total.value
is no longer valid. The proper way to get the total hits isctx.payload.hits.total